package com.way.controller;

import io.jsonwebtoken.Jwts;
import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.nio.charset.StandardCharsets;

/**
 * @author 魏彪
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("/me")
    public Object me(Authentication authentication, HttpServletRequest request) {
        return authentication;
    }
}
